forum

Home / DeveloperSection / Forums / Modify Razor params within Javascript

Modify Razor params within Javascript

Jayden Bell 1971 02-Dec-2014

I am trying to modify parameters routeValue in Razor within Javascript. 

function setForm(param) {
   var formCariEntitas = '@Html.Action("FormCariEntitas", "Registrasi", New With {.id = "entitas"'+param+'})';
   return formCariEntitas;
}

But the error said, "param is not declared. It may be inaccessible". Is there any other way? Is it possible? Thanks


Updated on 03-Dec-2014

Can you answer this question?


Answer

1 Answers

Liked By